package org.service.impl;

import org.dao.IDataDao;
import org.dao.impl.DataDaoImpl;
import org.entity.ConsigneeInfo;
import org.entity.ConsignorInfo;
import org.entity.OrderInfo;
import org.entity.SrCity;
import org.service.IDataService;

public class DataServiceImpl implements IDataService {

	@Override
	public boolean addData(ConsigneeInfo consigneeInfo, ConsignorInfo consignorInfo, OrderInfo orderInfo,
			SrCity srCity) {
			IDataDao dataDao = new DataDaoImpl();
			return dataDao.addData(consigneeInfo, consignorInfo, orderInfo, srCity);
	}

	@Override
	public int addMyOrder(int id, String userName) {
		IDataDao dataDao = new DataDaoImpl();
		dataDao.addMyOrder(id, userName);
		return 0;
	}
}	
